<%--
    User: limeng
    Date: 16/8/30
    Time: 上午11:02
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="../../css/wangEditor.min.css" />
<div class="panel panel-default">
    <div class="panel-heading">
        <h3>{{title}}</h3>
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label for="txtTitle">标题</label>
            <input class="form-control"
                   id="txtTitle"
                   type="text"
                   placeholder="请输入标题"
                   ng-model="article.title" >
        </div>
        <div>
            <div id="textEditor" style="width: 95%; min-height: 1000px; margin: auto">
                <p>请输入内容……</p>
            </div>
        </div>
    </div><!-- panel-body -->

    <div class="panel-footer">
        <div class="row">
            <div class="pull-right" style="margin-right: 10px">
                <button class="btn btn-primary" type="button" ng-click="publishArticle()">
                    发布文章
                </button>
            </div>
        </div>
    </div>
</div>

<script>
    var editor = new wangEditor('textEditor');
    editor.config.uploadImgUrl = '../../uploadImages/';
    editor.create();
    $('#textEditor').css("height", "500px");
</script>
